package cn.kimming.rpc.remoting.codec;

import cn.kimming.rpc.common.constant.SerializationWay;
import io.netty.handler.codec.ByteToMessageCodec;

public abstract class AbstractMyRpcProtocolCodec<I> extends ByteToMessageCodec<I> {
    protected final int HEADER_LENGTH = (Byte.BYTES << 1) + Integer.BYTES;
    protected SerializationWay serializationWay;

    public AbstractMyRpcProtocolCodec() {
    }

    public AbstractMyRpcProtocolCodec(SerializationWay serializationWay) {
        this.serializationWay = serializationWay;
    }


}
